<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <title>新增处方</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <script src="https://cdn.bootcss.com/jquery/2.0.2/jquery.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>新增处方</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/chuAdd" method="post">
        付费类别: <input type="text" name="chufang.pay"><br><br>
        患者姓名: <input type="text" name="chufang.patient_name"><br><br>
        患者年龄: <input type="text" name="chufang.patient_age"><br><br>
        患者体重: <input type="text" name="chufang.patient_weight"><br><br>
        过敏史&nbsp: <input type="text" name="chufang.allergy"><br><br>
        诊&nbsp;&nbsp;断: <input type="text" name="chufang.diagnosis"><br><br>
        地&nbsp;&nbsp;址: <input type="text" name="chufang.address"><br><br>
        电&nbsp;&nbsp;话: <input type="text" name="chufang.phone"><br><br>
        医&nbsp;&nbsp;师: <input type="text" name="chufang.doctor"><br><br>
        审核医师: <input type="text" name="chufang.audited"><br><br>
        调配医师: <input type="text" name="chufang.allocate"><br><br>
        发药师&nbsp;: <input type="text" name="chufang.distribute"><br><br>
        <input type="submit" value="添加">

    <div>
        <table class="table" id="yaopin">
            <thead>
            <tr>
                <th>药品id</th>
                <th>数量</th>
                <th>用法用量</th>
                <th>备注</th>
            </tr>
            </thead>
            <tr><td><input name="chuFangYaoList[0].drugs_id" /></td><td><input name="chuFangYaoList[0].num"/></td><td><input name="chuFangYaoList[0].instructions" /></td><td><input name="chuFangYaoList[0].remarks" /></td></tr>

            <tr><td><input name="chuFangYaoList[1].drugs_id" /></td><td><input name="chuFangYaoList[1].num"/></td><td><input name="chuFangYaoList[1].instructions" /></td><td><input name="chuFangYaoList[1].remarks" /></td></tr>

            <tr><td><input name="chuFangYaoList[2].drugs_id" /></td><td><input name="chuFangYaoList[2].num"/></td><td><input name="chuFangYaoList[2].instructions" /></td><td><input name="chuFangYaoList[2].remarks" /></td></tr>
        </table>

    </div>
    </form>

</div>

</body>

